/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package kindergarden.at.google;

/**
 *
 * @author rogu0903
 */
public class Child{

  private      String home_phone_number;
  private      String home_phone_number2;
  private      short attendence;
  private      int attendence_time;
  private      String name;
  private      String sin_num;
  private      String comment;
  private      int id;

    public Child(String pHome_phone_number, String pHome_phone_number2, short pAttendence, int pAttendence_time, String pName, String pSin_num, String pComment){
        home_phone_number= pHome_phone_number;
        home_phone_number2= pHome_phone_number2;
        attendence= pAttendence;
        attendence_time= pAttendence_time;
        name= pName;
        sin_num= pSin_num;
        comment= pComment;
    }
     public Child(String pHome_phone_number, String pHome_phone_number2, short pAttendence, int pAttendence_time, String pName, String pSin_num, String pComment,int pId ){
        home_phone_number= pHome_phone_number;
        home_phone_number2= pHome_phone_number2;
        attendence= pAttendence;
        attendence_time= pAttendence_time;
        name= pName;
        sin_num= pSin_num;
        comment= pComment;
        id=pId;

    }
    public Child(){
        home_phone_number= null;
        home_phone_number2= null;
        attendence= 0;
        attendence_time= 0;
        name= null;
        sin_num= null;
        comment= null;
    }
    public String childToString(){
        String s = name+"|"+sin_num+"|"+home_phone_number+"|"+home_phone_number+"|"+comment+"|"+attendence_time+"|"+attendence+"|"+id;
        return s;
    }
    public short isAttendence() {
        return attendence;
    }

    public void setAttendence(short attendence) {
        this.attendence = attendence;
    }

    public int getId() {
        return id;
    }

    public int getAttendence_time() {
        return attendence_time;
    }

    public void setAttendence_time(int attendence_time) {
        this.attendence_time = attendence_time;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getHome_phone_number() {
        return home_phone_number;
    }

    public void setHome_phone_number(String home_phone_number) {
        this.home_phone_number = home_phone_number;
    }

    public String getHome_phone_number2() {
        return home_phone_number2;
    }

    public void setHome_phone_number2(String home_phone_number2) {
        this.home_phone_number2 = home_phone_number2;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSin_num() {
        return sin_num;
    }

    public void setSin_num(String sin_num) {
        this.sin_num = sin_num;
    }

}
